package com.mingqijia.gassafety.shared.constant;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 业务配置模板
 * 
 * @Author: duanhongxiang
 * @Date: 2024/1/18 14:22
 */
public interface GssBusinessNoticeConstant {
    /**
     * 业务配置参数类型,1开关，2参数配置
     */
    Integer TEMPLATE_SWITCH = 1;
    Integer TEMPLATE_CONFIG = 2;

    /**
     * 业务配置参数开关值，ON开，OFF关
     */
    String TEMPLATE_SWITCH_ON = "ON";
    String TEMPLATE_SWITCH_OFF = "OFF";

    /**
     * 业务配置参数开关值列表
     */
    List<String> TEMPLATE_SWITCH_VALUES = Arrays.asList(new String[]{
            TEMPLATE_SWITCH_ON,
            TEMPLATE_SWITCH_OFF
    });
    
    //################################param_code##############################
    //燃气泄漏语音机器人内容定义
    String OUTBOUND_CUSTOM_ALERT_PARAM_CODE = "alert_iflytek_outbound_custom";
    //设备故障语音机器人内容定义
    String OUTBOUND_CUSTOM_BROKEN_PARAM_CODE = "broken_iflytek_outbound_custom";
    //设备离线语音机器人内容自定义
    String OUTBOUND_CUSTOM_OFFLINE_PARAM_CODE = "offline_iflytek_outbound_custom";
    //设备离线语音机器人内容定义
    String OUTBOUND_CUSTOM_RUN_PARAM_CODE = "run_iflytek_outbound_custom";
    //服务到期语音机器人内容定义
    String OUTBOUND_CUSTOM_SERVICE_PARAM_CODE = "service_iflytek_outbound_custom";
    //################################param_code##############################

    //################################默认task_code##############################
    String OUTBOUND_CUSTOM_ALERT_TASK_CODE = "gassafety_call_task";
    String OUTBOUND_CUSTOM_BROKEN_TASK_CODE = "gassafety_call_breakdown_task";
    String OUTBOUND_CUSTOM_OFFLINE_TASK_CODE = "gassafety_call_offline_task";
    String OUTBOUND_CUSTOM_RUN_TASK_CODE = "gassafety_call_report_task";
    String OUTBOUND_CUSTOM_SERVICE_TASK_CODE = "gassafety_call_service_task";
    //################################默认task_code##############################
    
    
    

    /**
     * 外呼的参数codes
     */
    List<String> AICALL_PARAM_CODES = Arrays.asList(new String[]{
            OUTBOUND_CUSTOM_ALERT_PARAM_CODE,
            OUTBOUND_CUSTOM_BROKEN_PARAM_CODE,
            OUTBOUND_CUSTOM_OFFLINE_PARAM_CODE,
            OUTBOUND_CUSTOM_RUN_PARAM_CODE,
            OUTBOUND_CUSTOM_SERVICE_PARAM_CODE
    });


    /**
     * 外呼param_code对应的app_name
     */
    Map<String, String> AICALL_PARAM_CODE_APP_PREFIX = new HashMap<String, String>() {
        {
            put(OUTBOUND_CUSTOM_ALERT_PARAM_CODE, "gassafety_call");
            put(OUTBOUND_CUSTOM_BROKEN_PARAM_CODE, "gassafety_call_breakdown");
            put(OUTBOUND_CUSTOM_OFFLINE_PARAM_CODE, "gassafety_call_offline");
            put(OUTBOUND_CUSTOM_RUN_PARAM_CODE, "gassafety_call_report");
            put(OUTBOUND_CUSTOM_SERVICE_PARAM_CODE, "gassafety_call_service");
        }
    };

    /**
     * 外呼param_code对应的默认task_code
     */
    Map<String, String> AICALL_PARAM_CODE_TASK_CODE_MAP = new HashMap<String, String>() {
        {
            put(OUTBOUND_CUSTOM_ALERT_PARAM_CODE, OUTBOUND_CUSTOM_ALERT_TASK_CODE);
            put(OUTBOUND_CUSTOM_BROKEN_PARAM_CODE, OUTBOUND_CUSTOM_BROKEN_TASK_CODE);
            put(OUTBOUND_CUSTOM_OFFLINE_PARAM_CODE, OUTBOUND_CUSTOM_OFFLINE_TASK_CODE);
            put(OUTBOUND_CUSTOM_RUN_PARAM_CODE, OUTBOUND_CUSTOM_RUN_TASK_CODE);
            put(OUTBOUND_CUSTOM_SERVICE_PARAM_CODE, OUTBOUND_CUSTOM_SERVICE_TASK_CODE);
        }
    };
    
    
}
